﻿using System;

namespace UndoCommandSample
{
    class Program
    {
        static void Main(string[] args)
        {
            Command command = null;
            CalculatorForm calculatorForm = new CalculatorForm();
            command = new AddCommand();
            calculatorForm.Command = command;

            calculatorForm.Compute(10);
            calculatorForm.Compute(10);
            calculatorForm.Undo();
            Console.Read();
        }
    }
}
